package neo.service.impl;

import java.util.Date;
import java.util.UUID;

import org.apache.log4j.Logger;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import neo.model.Tuser;
//import neo.pageModel.User;
//import neo.util.Encrypt;

import neo.service.UserServiceI;

@Service("userService")
//@Transactional
public class UserServiceImpl implements UserServiceI {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(UserServiceImpl.class);

	@Override
	public void test() {
		logger.info("fck");
	}

	@Override
	public void save(Tuser user) {
//		Tuser t = new Tuser();
//		// t.setName(user.getName());
//		// t.setPwd(user.getPwd());
//		BeanUtils.copyProperties(user, t, new String[] { "pwd" });
//		t.setId(UUID.randomUUID().toString());
//		t.setCreatedatetime(new Date());
//		t.setPwd(Encrypt.e(user.getPwd()));
//		userDao.save(t);
	}
}
